<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html lang="en">
<meta charset="utf-8"> 
	<head>
		<!-- CSS import -->		
		<link rel="stylesheet" type="text/css" href="css/raccoon.css" />
		<link rel="stylesheet" type="text/css" href="css/login.css" />
	</head>
	
	 <body>
	 	<canvas id="background"></canvas>
		
		<form name="login" class="loginForm" method=post action="j_security_check">
        <p>
            <input type="text" name="j_username" placeholder="Usuario" autocomplete="off">
        </p>
        <p>
			<input type="password" name="j_password" placeholder="Contraseña" autocomplete="off">
        </p>
        <div class="formButton loginButton" onclick="document.login.submit()" href="rcn.htm">Acceder</div>
		<%
        	java.security.Principal obj = request.getUserPrincipal();

	        if(obj!=null) 
	        {
	            response.sendRedirect("rcn.jsp");
	        }
        %>
    </form>
	</body>

</html>